package 剑指offer;

import org.w3c.dom.Node;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName _35复杂链表的复制
 * @Description TODO
 * @Author 昝亚杰
 * @Date 2022/2/23 21:22
 * Version 1.0
 **/
public class _35复杂链表的复制 {
    /*public Node copyRandomList(Node head) {
        Node cur = head;
        Map<Node,Node> map = new HashMap();
        while(cur != null){
            map.put(cur,new Node(cur.val));
            cur = cur.next;
        }

        cur = head;
        while(cur != null){
            map.get(cur).next = map.get(cur.next);
            map.get(cur).random = map.get(cur.random);
            cur = cur.next;
        }
        return map.get(head);
    }*/
}
